//
//  WJDemoViewController.swift
//  WJWEIBO
//
//  Created by 文杰 许                       on 2018/6/21.
//  Copyright © 2018年 文杰 许                      . All rights reserved.
//

import UIKit

class WJDemoViewController: WJBaseViewController {

    override func viewDidLoad()
    {
        super.viewDidLoad()
        
        title = "第\(navigationController?.childViewControllers.count ?? 0)个"
    }

    @objc fileprivate func nextVC()
    {
        let vc = WJDemoViewController()
        
        navigationController?.pushViewController(vc, animated: true)
    }
}

extension WJDemoViewController
{
    override func setupTableView()
    {
        super.setupTableView()
        
        backBarItem.isHidden = false
        
        rightBarItem.isHidden = false
        rightBarItem .setTitle("下一个", for: .normal)
        rightBarItem .addTarget(self, action: #selector(nextVC), for: .touchUpInside)
    }
}
